package cn.tedu._05mvcboot06.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
@Data
public class UserArticleDTO {
    @Size(min = 1, max = 20, message = "标题长度为1-20")
    @NotBlank(message = "标题不能为空白")
    @ApiModelProperty(value = "文章标题")
    private String title;

    @Size(min = 10, max = 500, message = "内容长度为10-500")
    @NotBlank(message = "内容不能为空白")
    @ApiModelProperty(value = "文章内容")
    private String content;
}
